<h3>Skatītāju zāles</h3>
<a class="btn btn-info" href="/auditorium/add">Pievienot</a>
<table class="table table-striped">  
    <thead>  
        <tr>  
            <th>ID</th>
            <th>Nosaukums</th>
            <th>Rindas</th>
            <th>Sēdvietas rindā</th>
            <th>3D</th>
            <th></th>
        </tr>  
    </thead>  
    <tbody>  
        <?php foreach($auditorium_data as $item) { 
           echo 
            '<tr>'
            . '<td>'. $item->id .'</td>'
            . '<td>' .$item->auditorium_name. '</td>'
            . '<td>' .$item->rows. '</td>'
            . '<td>' .$item->seats_per_row. '</td>'
            . '<td>' .( $item->support_3d == 1 ? '+' : '-' ). '</td>'
            . '<td><a class="btn btn-info btn-xs" href="/auditorium/edit/'.$item->id.'">Labot</a></td>'
            .'</tr>';
        }
        ?>
    </tbody>  
</table>  
